# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-toolz
pkgver=0.12.1
pkgrel=1
pkgdesc="functional standard library for Python"
url="https://toolz.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/t/toolz/toolz-$pkgver.tar.gz"
builddir="$srcdir/toolz-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# https://github.com/pytoolz/toolz/issues/577
	PYTHONPATH="$PWD/build/lib" python -m pytest \
		-k 'not test_inspect_wrapped_property'
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
c514934d1a8069cd70e4d8b9ca32cd2c96e85b1dabb45bbbe4b0644581eb7e7f9f6a6d9230483f1872695edf25ff77ad7643cffb3041a012ed64424097a23e9e  toolz-0.12.1.tar.gz
"
